//
//  SelectGroupTableViewCell.m
//  MyYiJianKangApp
//
//  Created by 张国文 on 16/4/8.
//  Copyright © 2016年 hangzhouyijiyin. All rights reserved.
//

#import "SelectGroupTableViewCell.h"

@implementation SelectGroupTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self addMySubview];
    }
    return self;
}

// 布局
- (void)addMySubview
{
    self.groupNameLabel = [[UILabel alloc] initWithFrame:CGRectMake(20 * kAdjustParamater, 11 * kAdjustParamater, 200 * kAdjustParamater, 15 * kAdjustParamater)];
 //   self.groupNameLabel.backgroundColor = [[UIColor blackColor] colorWithAlphaComponent:0.1];
    self.groupNameLabel.textColor = [UIColor blackColor];
    self.groupNameLabel.textAlignment = NSTextAlignmentLeft;
    self.groupNameLabel.font = [UIFont systemFontOfSize:k17Big];
    [self.contentView addSubview:_groupNameLabel];
    
    self.selectImageV = [[UIImageView alloc] initWithFrame:CGRectMake((375 - 35) * kAdjustParamater , 8 * kAdjustParamater, 20 * kAdjustParamater, 20 * kAdjustParamater)];
    self.selectImageV.image = [UIImage imageNamed:@"qianseduihao-gongyou"];
    [self.contentView addSubview:_selectImageV];
    
}


- (void)setIsSelect:(NSString *)isSelect
{
    if ([isSelect isEqualToString:@"YES"]) {
        // 说明被选中
        self.selectImageV.hidden = NO;
    } else if ([isSelect isEqualToString:@"NO"]) {
        // 说明未被选中
        self.selectImageV.hidden = YES;
    }
}









@end
